import java.util.Queue;

public class ChooseFunction {

	public static void main(String[] args) {
		int setSize = 20;
		int numberOfItemsToChoose = 6; 
		
		ItemSet itemSet = new ChooseItem(setSize);
		
		for(int i=0; i < numberOfItemsToChoose-1; ++i) 
			itemSet = new ChooseAdditionalItem(itemSet);
		
		Queue<String> waysToChoose = itemSet.chooseItems();
		
		for(String aWayToChoose : waysToChoose)
			System.out.println(aWayToChoose);
		
		System.out.println();
		System.out.print(" " + waysToChoose.size() + " different ways to choose ");
		System.out.println(numberOfItemsToChoose + " things out of " + setSize + " things.");
	}

}
